Release 10.1A: OpenEdge Development:
ADM Reference
callstringtt.p
The
callstringtt.pprocedure is similar tocallstring.p, except that it allows you to pass up to 64 temp-tables that function as parameters to the invokeCall procedure.In addition to the behavior provided by
callstring.p,callstringtt.palso allows the caller to provide a mapping between the 64 temp-tables being passed and the appropriate parameter to the call.The code in Example A–1 illustrates an example procedure that you might need to call in a server-side procedure.
The code in Example A–2 illustrates making a call to the
Note: Example A–2 illustrates code for use in a non-dynamics environment because it uses a procedure file.obtainCustomerDataprocedure. In this example, the procedure passes the handle to the temp-table as the first parameter and the buffer handle for the order temp-table as the second parameter.
You must specify each
TABLE-HANDLEyou want to pass in a remote call. As a result, to make a remote call to the AppServer, you must specify all 64 TABLE-HANDLEs. To do this efficiently, you can specify the TABLE-HANDLE parameters using the include filecallttparam.ilocated in thesrc/adm2/directory. Before using this include file, you must define an array of handles with an extent of 64.To do this, you could modify the code in Example A–2 as follows:
The syntax highlighted in bold in the Example A–2 modified code deserves some additional explanation:
The first and third parameters in the string correspond to the first and second temp-tables being passed as indicated by the 01 and 02 values after the colon. Note that the
T:orB:that precedes the number indicates whether to pass a TEMP-TABLE (T) or BUFFER (B) handle to the procedure being called. As a result, the passing order of the temp-tables in the include file does not need to be the same order used by the call. The order used in the call is determined by the subscript that follows theT:orB:.For more information, see the "Temp-table include files" section and the "Temp-table types" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |